//
//  BaseTextFiled.swift
//  jiaoyi
//
//  Created by wjk on 2018/8/8.
//  Copyright © 2018年 wjk. All rights reserved.
//

import UIKit

extension UIView {

    func bottomLine() -> Void {
        let layer = CALayer();
        layer.frame = CGRect(x: 0, y: self.bounds.size.height - 1, width: self.bounds.size.width, height: 1);
        layer.backgroundColor = UIColor.white.cgColor;
        self.layer .addSublayer(layer);
    }
    /*
    // Only override draw() if you perform custom drawing.
    // An empty implementation adversely affects performance during animation.
    override func draw(_ rect: CGRect) {
        // Drawing code
    }
    */

}
